import request from './airspaceRequest'

//低空总览-应用场景飞行时长趋势
export const flyTimeTrendServer = (params) =>
  request.get('/screen/airspace/overview/trend', { params })

//低空总览-应用场景飞行架次趋势
export const flyCountTrendServer = (params) =>
  request.get('/screen/airspace/overview/count', { params })

//低空总览-应用场景飞行时长
export const flyTimeTotalServer = (params) =>
  request.get('/screen/airspace/overview/time', { params })

//低空总览-空域资源数据
export const airspaceResourcesServer = (params) =>
  request.get('/screen/airspace/overview/res', { params })

//低空总览-中间区域指标统计
export const airspaceInfoServer = (params) =>
  request.get('/screen/airspace/overview/info', { params })

//低空总览-应用场景
export const airspaceAppServer = (params) =>
  request.get('/screen/airspace/overview/app', { params })

//空域管理-空域统计
export const airspaceCountServer = (params) =>
  request.get('/screen/airspace/management/count', { params })

//空域列表
export const airspaceListServer = (params) =>
  request.get('/screen/airspace/management/list', { params })

//空域使用情况
export const airspaceUsageServer = (params) =>
  request.get('/screen/airspace/management/usage', { params })

//空域地图
export const airspaceMapServer = (params) =>
  request.get('/screen/airspace/management/map', { params })

// 基础设施总览
export const deviceViewServer = (params) => request.get('/screen/airspace/device/view', { params })

//起降设施列表
export const deviceListServer = (params) => request.get('/screen/airspace/device/list', { params })

//起降设施统计
export const deviceStatServer = (params) => request.get('/screen/airspace/device/stat', { params })

// 基础设施管理-起降点、机巢占比
export const deviceRatioServer = (params) =>
  request.get('/screen/airspace/device/ratio', { params })

// 起降设施分布
export const deviceMapServer = (params) => request.get('/screen/airspace/device/map', { params })

// 起降点基本属性信息
export const deviceInfoServer = (params) => request.get('/screen/airspace/device/info', { params })

// 通导监数据
export const deviceDataServer = (params) => request.get('/screen/airspace/device/data', { params })

// 通导监-监视探测目标
export const deviceRadarServer = (params) =>
  request.get('/screen/airspace/device/radar', { params })

// 通导监基本信息
export const deviceDeployServer = (params) =>
  request.get('/screen/airspace/device/deploy', { params })

// 通导监设施分布地图
export const deviceDeployMap = (params) =>
  request.get('/screen/airspace/device/deploy/map', { params })

/**
 * 运营概况
 * @param taskNature
 * @returns
 */
export const operationOverviewServer = (params) =>
  request.get('/v1/public/big-screen/web-api/operation-overview', { params })

/**
 * 政务服务-运营概况
 * @param snCode
 * @returns
 */
export const governmentOperationServer = (params) =>
  request.get('/v1/public/big-screen/web-api/government/operation-status', { params })

/**
 * 低空融合概况
 * @param snCode
 * @returns
 */
export const fusionFlightServer = (params) =>
  request.get('/v1/public/big-screen/web-api/government/fusion-flight-overview', { params })

/**
 * 飞行实况
 * @param snCode
 * @returns
 */
export const fusionRealityServer = (params) =>
  request.get('/v1/public/big-screen/web-api/flight-reality', { params })

/**
 * 飞行器信息
 * @param snCode
 * @returns
 */
export const aircraftServer = (params) =>
  request.get('/v1/public/big-screen/web-api/aircraft', { params })

/**
 * 飞行验证和政务巡查概况
 * @param snCode
 * @returns
 */
export const operationStatus = (params) =>
  request.get('/v1/public/big-screen/web-api/operation-status', { params })

/**
 * 机库信息
 * @param snCode
 * @returns
 */
export const hangarDetail = (params) =>
  request.get('v1/public/big-screen/web-api/hangar-detail', { params })

/**
 * 载人通勤-航线查询
 */
export const hangxianServer = (params) => {
  return request.get('v1/public/big-screen/web-api/government/manned-commuting', { params })
}

/**
 * 机舱详情
 * @param platformld
 * @returns
 */
export const hangarDetailServer = (params) =>
  request.get('/v1/public/big-screen/web-api/hangar-detail', { params })

/**
 * 获取视频流地址
 * @param id 机场id
 * @returns
 */
export const getVideoServer = (params) =>
  request.get('/v1/public/big-screen/web-api/mediaStream', { params })

/**
 * 某个视频流
 * @returns
 */
export const stopOneMediaStreamServer = (params) =>
  request.get('/v1/public/big-screen/web-api/stopMediaStream', { params })
/**
 * 航线气象图
 * @returns
 */
export const getWeatherDataServer = (params) =>
  request.get('/v1/private/weather/get-weather-data', { params })

/**
 * 航线起点气象数据
 * @returns
 */
export const getStartPointDataServer = (params) =>
  request.get('/v1/private/weather/get-start-point-data', { params })

/**
 * 能见度接口
 * @returns
 */
export const getVisibilityData = (params) =>
  request.get('/v1/private/weather/get-visibility-data', { params })

/**
 * 六要素小型气象站接口
 * @returns
 */
export const getSmallWeatherData = (params) =>
  request.get('/v1/private/weather/get-small-weather-data', { params })
